package com.ips.controller;

import com.ips.service.ConversionService;
import com.ips.vo.ConversionLinkIVO;
import com.ips.vo.ConversionLinkOVO;
import com.ips.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 转换
 */
@RestController
@RequestMapping("/conversion")
public class ConversionController {

    @Autowired
    private ConversionService conversionService;

    @PostMapping("/getLink")
    public Result<ConversionLinkOVO> getLink(@RequestBody ConversionLinkIVO ivo) {
        ConversionLinkOVO link = conversionService.getLink(ivo);
        return Result.ok(link);
    }
}
